﻿




using InterfaceComponents;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;

namespace DrawableObjects.Actors.Aircrafts.Controller
{
    /// <summary>
    /// Contains predefined command objects for an AI controlled drone and an associated key that triggers the command
    /// </summary>
    public class DroneMode
    {
        public int modeID
        {
            get;
            private set;
        }

        public static DroneMode ATTACK = new DroneMode(0, Keys.D1);

        public static DroneMode DEFEND = new DroneMode(1, Keys.D2);

        public static DroneMode COLLECT = new DroneMode(2, Keys.D3);

        public static DroneMode REPAIR = new DroneMode(3, Keys.D4);

        private DroneMode(int modeID, Keys standardKey)
        {
            this.modeID = modeID;
            this.standardKey = standardKey;
        }

        public Keys standardKey 
        {
            get;
            private set;
        }

        public override string ToString()
        {
            return "" + modeID + ": " + standardKey.ToString();
        }

        public static DroneMode[] droneModes = new DroneMode[] { ATTACK, DEFEND, COLLECT, REPAIR};
    }
}

